package com.web.manager.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName("notice")  //表的名字
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Notice {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;
    private String time;
    private String context;
    private String userid;
    private boolean open;
    @TableField(exist = false)  //该字段在数据库中不存在
    private String user;
}
